package com.ice.work.organization.user.service.impl;

import com.honeybee.cloud.framework.base.exception.business.BaseBizException;
import com.ice.work.organization.user.mapper.UserConvertMapper;
import com.ice.work.organization.user.service.IUserService;
import com.ice.work.organization.facadeuser.dto.UserDTO;
import com.ice.work.organization.facadeuser.model.User;
import com.ice.work.organization.facadeuser.request.AddUserRequest;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author DELL
 * @Create 2019-09-29
 * @Since 1.0.0
 */
@Service
public class UserServiceImpl implements IUserService {

    @Override
    public UserDTO addUser(User user) throws BaseBizException {
        AddUserRequest request=new AddUserRequest();
        user= UserConvertMapper.INSTANCE.toModel(request);
        return UserConvertMapper.INSTANCE.toDTO(user);
    }
}
